package com.pmenergy.view;

import java.util.List;

import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

import com.pmenergy.control.ItemHome;
import com.pmenergy.control.ManoObraHome;
import com.pmenergy.control.MaterialHome;
import com.pmenergy.model.Item;
import com.pmenergy.model.ManoObra;
import com.pmenergy.model.Material;
 



@ManagedBean
@ApplicationScoped

public class MaterialServiceBean {

	@EJB MaterialHome materialHome; 
    private List<Material> materialList;
    
    @PostConstruct
    public void init() {
    	this.materialList=materialHome.findAllMateriales();    
    }
     
    public List<Material> getMaterialList() {
        return materialList;
    }
}


